package cn.com.yiqi.wsc.dao.customer;

import cn.com.yiqi.wsc.Ro.BalanceParaDO;
import cn.com.yiqi.wsc.Ro.PointParaDO;
import cn.com.yiqi.wsc.dao.customer.criteria.CustomerCriteria;
import cn.com.yiqi.wsc.entity.customer.CustomerSign;
import cn.com.yiqi.wsc.entity.customer.CustomerSignExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CustomerSignMapper {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(CustomerSign record);

    List<CustomerSign> selectByExample(CustomerSignExample example);

    CustomerSign selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CustomerSign record);

    List<CustomerSign> findList(@Param("userId") Integer userId, @Param("from") Date from, @Param("to") Date to);

    CustomerSign findlastSign(Integer userId);

    List<CustomerSign> selectByCustomerId(CustomerCriteria customerCriteria);

    String findSignRule(String code);

    PointParaDO findPointDO();


    BalanceParaDO findBalanceDO();
}